From a7a2bc1a69ec2b16b984f991817eefcd4f297bc7 Mon Sep 17 00:00:00 2001 From: Hollis Blanchard Date: Thu, 12 Apr 2007 13:05:04 -0500 Subject: [PATCH] [XEN][POWERPC] Fix debug=y build. When debug=y, we use -O0 for single-stepping. This breaks the force-link-error trick used in __xchg(), so we provide a real function to link with. Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/0opt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/powerpc/0opt.c b/xen/arch/powerpc/0opt.c index 6d85e63c9e..e029ed11eb 100644 --- a/xen/arch/powerpc/0opt.c +++ b/xen/arch/powerpc/0opt.c @@ -21,6 +21,12 @@ #include #include +extern void __xchg_called_with_bad_pointer(void); +void __xchg_called_with_bad_pointer(void) +{ + BUG(); +} + extern void __cmpxchg_called_with_bad_pointer(void); void __cmpxchg_called_with_bad_pointer(void) { -- 2.30.2